<?php

class PetSkill_170901 extends PetSkill
{
	public $id=170901;
	public $name='唱歌';
	public $desc='';
	public $succRatio=70;
    public $level=0;
    public $levelMax=4;

	private static $_instance;

	private function __construct()
	{
	}

	public function getInstance()
	{
		if (!self::$_instance)
			self::$_instance=new PetSkill_170901;
		return self::$_instance; 
	}
    
    protected function effects(&$self,&$enemy,$skillLevel)
	{
        return array(
            new FightPetActionEffect('enemy','hp','change',(int)(-$self->endurance*$skillLevel),0,true),
            new FightPetActionEffect('enemy','state','set','sleep',3,true),
            new FightPetActionEffect('enemy','physicalAttackRate','set',(int)(0),3,false),
            new FightPetActionEffect('enemy','skillAttackRate','set',(int)(0),3,false),
            new FightPetActionEffect('enemy','skillHelpRate','set',(int)(0),3,false),
            new FightPetActionEffect('enemy','defendRate','set',(int)(0),3,false),
        );
	}
    protected function consumeMp()
    {
        $skillLevel=$this->level;
        return (int)(10+8*$skillLevel);
    }    
}

?>
